package com.etc.service;

import com.etc.pojo.Admin;
import com.etc.pojo.SightDetail;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SightDetailService {

    /**
     * 通过ID删除景点
     * */
    int delSightDetail(int sightId);


    /**
     * 通过景点名字模糊查询景点
     * */
    PageInfo<SightDetail> selectSightDetailByName(String sightName,int pageNum, int pageSize);

    /**
     * 通过景点ID修改景点
     * */
    boolean modifySightDetail(int sightId, String sightName, String sightAdd, String sightPrice,
                              String sightOpenTime, String sightDescribe,String sightImg, String sightStatus);


    /**
     * 添加景点
     * */

    boolean addSightDetail(String sightName, String sightAdd, String sightPrice,
                           String sightOpenTime, String sightDescribe,String sightImg, String sightStatus);



}
